package cn.kgc.ffzw.test;

public abstract class Car {


    private Integer speed=30;

    private Integer state;//1停止2启动3运行

    public Car(){}

    public Car(Integer apeed,Integer state){}

    public Integer getSpeed() {
        return speed;
    }

    public void setSpeed(Integer speed) {
        this.speed = speed;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public abstract void run();

    public void start(){
            System.out.println("车辆启动");
    }

    public void stop(){
        System.out.println("车辆减慢");
    }
}
